<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/tld/extend.tld" prefix="extend"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>乐盈培训网 - 讲师信息</title>
	</head>
	
	
	<body>
	<div style="position:absolute; height:100%; width:1045px;">
	<jsp:include page="../header.jsp"></jsp:include>
			<table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size:12px;">
					<tr>
						<td height="25px">
							您现在的位置：<a href="<extend:contextPath name="contextPath"/>" class="normal_link">首页</a> >> 
							<a href="<extend:contextPath name="contextPath"/>/admin/goToAdmin.do" class="normal_link">admin</a> >> 更新教师
						</td>
					</tr>
			</table>
		<html:form action="/updateTeacherProcess.do?method=updateTeacherProcess" enctype="multipart/form-data">		
			<html:hidden property="teacher.teacherId"/>
			<html:hidden property="teacher.teacherImageName"/>
			<html:hidden property="teacher.version"/>
			<table style="margin-left:20px; margin-top:15px; width:800px;" cellpadding="0" cellspacing="0">
				<tr>	
					<td width="30%" height="30px">教师名称：</td>
					<td><html:text property="teacher.teacherName" /></td>
				</tr>
				 <tr>	
					<td valign="top">教师描述：</td>
					<td><html:textarea cols="20" rows="10" property="teacher.teacherDesc" /></td>
				</tr>
				<tr>	
					<td height="30px">教学专业：</td>
					<td><html:text property="teacher.teachMajor" /></td>
				</tr>				
				<tr>
					<td colspan="2">
						<img alt="11" width="100" height="100" src="<c:out value='${teacherImagePath}'/>">
					</td>
				</tr>
				<tr>
					<td height="30px">更换照片：</td>
					<td><html:file property="teacherImage" /></td>
				</tr>
				<tr>
					<td><html:submit>提交</html:submit></td>
				</tr>												
			</table>
		</html:form>
		
		<!--  显示该老师所教课程-->
		<c:choose>
			<c:when test='${empty courseList}'>
				<c:if test='${courseList != null}'>
					无课程记录
				</c:if>
			</c:when>
			<c:otherwise>
				<html:form>
					<table>
						<tr>
							<td></td>
						</tr>
					</table>
				</html:form>
			</c:otherwise>
		</c:choose>
		
		
	</div>	
	</body>
</html>